home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10643 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: galaxy.ucr.edu!not-for-mail
  2. From: thp@cs.ucr.edu (Tom Payne)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Will JAVA kill C++?
  5. Date: 9 Mar 1996 00:47:48 GMT
  6. Organization: University of California, Riverside
  7. Message-ID: <4hqkfk$20j@galaxy.ucr.edu>
  8. References: <313E44EA.14D110C0@netcom.com> <4hp18v$3di@frodo.smartlink.net>
  9. NNTP-Posting-Host: corvette.ucr.edu
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Matt Austern (austern@isolde.mti.sgi.com) wrote:
  13. : In C++, or Fortran, or Eiffel, you can have an array of complex
  14. : numbers.  In Java, though, you can't: you can have something that
  15. : looks like an array of complex numbers, but internally it's really an
  16. : array of pointers to complex numbers.  You have to pay a space penalty
  17. : to store those pointers, and a time penalty to do the dereferencing on
  18. : every element, and the optimizer will have to generate code on
  19. : assumption that two array elements might point to the same object.
  20.  
  21. Are these references resettable?  If not, how can they be made to
  22. collide like that?  In fact, if they are not resettable, is there
  23. any reason that the extra level of indirection couldn't be 
  24. optimized away?
  25.  
  26. Tom Payne (thp@cs.ucr.edu)
  27.